export default class Order{
	
	constructor(orderNo, createTime, orderStatus, productCover, productName, payAmount) {
		this.orderNo = orderNo;
		this.createTime = createTime;
		this.orderStatus = orderStatus;
		this.productCover = productCover;
		this.productName = productName;
		this.payAmount = payAmount;
	}
	
	static parseFromJsonString(jsonString) {
		let jsonObject = JSON.parse(jsonString);
		return new Order(
			jsonObject.orderNo,
			jsonObject.createTime,
			jsonObject.orderStatus,
			jsonObject.productCover,
			jsonObject.productName,
			jsonObject.payAmounts
		);
	}
	
	
}